<?
ob_start();
session_start();
if(!session_is_registered("user"))
header("location:home_admin.php")
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>home admin</title>
<style type="text/css">
<!--
body {
	background-color: #ECE9D8;
}
.style3 {
	color: #999999;
	font-size: 18;
}
.style4 {font-family: Verdana, Arial, Helvetica, sans-serif}
.style5 {color: #334D55}
.style7 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #334D55; }
-->
</style></head>

<body>
<div align="center"><table width="791" border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="650" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="650" bgcolor="#FFFFFF"><img src="image/head-admin copy.jpg" width="799" height="113" /></td>
      </tr>
      <tr>
        <td bgcolor="#999999"><img src="image/bts.jpg" width="798" height="24" /></td>
      </tr>
      <tr>
        <td bgcolor="#F9F8F6"><table width="792" border="0" align="right" cellpadding="3" cellspacing="2">
          <tr>
            <td width="157" bgcolor="#F9F8F6">&nbsp;</td>
            <td width="635" rowspan="7" bgcolor="#FFFFFF">
			<p><?php
			 include "../librari//koneksi.php";
			echo "<h2>DATA HRD</h2>
	  <table>
	<tr>
	<th>No</th>
	<th>Nama HRD</th>
	<th>Password</th>
	</tr>";
			$tampil = "Select * from hrd order by idHRD asc";
			$hasil=mysql_query($tampil);
                $no=+1;
                while ($r=mysql_fetch_array($hasil)){

	 echo "
	 	   <tr><td>$no</td>
           <td>$r[nmHRD]</td>
		   <td>$r[passwdHRD]</td>
		   ";
           
$no++;
}
echo "</table>";
	
?></h2></p>
              </td>
          </tr>
          <tr>
            <td bgcolor="#F9F8F6"><div align="left"><span class="style7"><a href="home_admin.php">Home</a></span></div></td>
            </tr>
          <tr>
            <td bgcolor="#F9F8F6"><span class="style5"></span>
              <div align="left"><span class="style7"><a href="dataHRD.php">Data HRD</a> </span> </div></td>
            </tr>
          <tr>
            <td bgcolor="#F9F8F6"><div align="left" class="style7"><a href="tes.php">Tes</a></div></td>
            </tr>
          <tr>
            <td bgcolor="#F9F8F6"><form action="" method="post" name="form3" class="style4" id="form3">
              <label></label>
              <div align="left" class="style7"><a href="syarat.php">Syarat</a></div>
            </form>            </td>
            </tr>
          <tr>
            <td bgcolor="#F9F8F6"><div align="left"><span class="style7"><a href="logout_admin.php">Logout</a></span></div></td>
            </tr>
          <tr>
            <td bgcolor="#F9F8F6"><form action="" method="post" name="form2" class="style4" id="form2">
              <label></label>
              <label></label>
            </form>            </td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF"><div align="center" class="style3">Copy Right &copy; 2010 Margaretha Ajeng Purbo Resmi </div></td>
      </tr>
    </table></td>
  </tr>
</table>
</div>
</body>
</html>
<?
ob_end_flush();
?>
